// samsting : this file is auto create.

#include "Emr/2015-09-10/ListClustersResponse.h"

namespace aliyun { namespace Emr {

ListClustersResponse::ListClustersResponse() {
}

int64 ListClustersResponse::ClusterInfo::GetId(void) const {
  return Id_;
}

const string& ListClustersResponse::ClusterInfo::GetName(void) const {
  return Name_;
}

int ListClustersResponse::ClusterInfo::GetPayType(void) const {
  return PayType_;
}

int ListClustersResponse::ClusterInfo::GetType(void) const {
  return Type_;
}

const string& ListClustersResponse::ClusterInfo::GetCreateTime(void) const {
  return CreateTime_;
}

const string& ListClustersResponse::ClusterInfo::GetRunningTime(void) const {
  return RunningTime_;
}

int ListClustersResponse::ClusterInfo::GetStatus(void) const {
  return Status_;
}

const string& ListClustersResponse::ClusterInfo::GetFailReason(void) const {
  return FailReason_;
}

const std::vector<ListClustersResponse::ClusterInfo>& ListClustersResponse::GetClusters(void) const {
  return Clusters_;
}

int ListClustersResponse::GetTotalCount(void) const {
  return TotalCount_;
}

int ListClustersResponse::GetPageNumber(void) const {
  return PageNumber_;
}

int ListClustersResponse::GetPageSize(void) const {
  return PageSize_;
}

const char* ListClustersResponse::BaseKey(void) {
  return "ListClustersResponse";
}

void ListClustersResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Clusters__length = 0;
  UnmarshallerInt(Clusters__length, response_map, "ListClustersResponse.Clusters.Length");
  if(Clusters__length >= 0) {
    Clusters_.resize(Clusters__length);
    for(int i1 = 0; i1 < Clusters__length; i1++) {
      UnmarshallerInt64(Clusters_[i1].Id_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].Id");
      UnmarshallerString(Clusters_[i1].Name_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].Name");
      UnmarshallerInt(Clusters_[i1].PayType_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].PayType");
      UnmarshallerInt(Clusters_[i1].Type_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].Type");
      UnmarshallerString(Clusters_[i1].CreateTime_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].CreateTime");
      UnmarshallerString(Clusters_[i1].RunningTime_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].RunningTime");
      UnmarshallerInt(Clusters_[i1].Status_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].Status");
      UnmarshallerString(Clusters_[i1].FailReason_, response_map, "ListClustersResponse.Clusters["+string_ValueOfInt(i1)+"].FailReason");
    } // for(int i1 = 0; i1 < Clusters__length; i1++) {
  } // if(Clusters__length >= 0) {

  UnmarshallerInt(TotalCount_, response_map, "ListClustersResponse.TotalCount");
  UnmarshallerInt(PageNumber_, response_map, "ListClustersResponse.PageNumber");
  UnmarshallerInt(PageSize_, response_map, "ListClustersResponse.PageSize");
}


} } // namespace aliyun { namespace Emr {

// end of file 
